package com.bbs.event;

import com.bbs.dto.PostPublishedDTO;
import org.springframework.context.ApplicationEvent;
import org.springframework.stereotype.Component;

public class PostPublishedEvent extends ApplicationEvent {
    private PostPublishedDTO postPublishedDTO;
    public PostPublishedEvent(Object source,PostPublishedDTO postPublishedDTO) {
        super(source);
        this.postPublishedDTO=postPublishedDTO;
    }

    public PostPublishedDTO getPostPublishedDTO() {
        return postPublishedDTO;
    }

    public void setPostPublishedDTO(PostPublishedDTO postPublishedDTO) {
        this.postPublishedDTO = postPublishedDTO;
    }
}
